package com.example.SpringModelManage.util;

public class JsonResult {
    private int code;
    private String message;
    private Object data;

    public JsonResult(int status, String message, Object data) {
        this.code = status;
        this.message = message;
        this.data = data;
    }
    public JsonResult(int status,String message)
    {
        this.code = status;
        this.message = message;
    }
    public JsonResult(String message){
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public Object getData() {
        return data;
    }
}
